
Graphimation{

	noOfGeometries 2
	FadeRectangle Rectangle{ x -1000 y -1000 w 2000 h 2000 hitTest 0 }
	7dxText Text{
		text 7dx-2010
		font Courier
		size 40
		x 500 y 300 w 300 h 80
		hitTest 0
	}

	noOfBrushes 2
	FadeBrush SolidColorBrush{ Color{ 1 1 1 1 } opacity $fade } 
	TextBrush SolidColorBrush{ Color{ 0.6 0.3 0.3 1 } opacity $text }

	noOfTransforms 0


	noOfChildGxms 4
	Gears Graphimation{ data/patterns/gears.d2g }
	Snowy Graphimation{ data/patterns/snowy.d2g }
	Greets Graphimation{ data/patterns/greets.d2g }
	End Graphimation{ data/patterns/end.d2g }

	noOfExecutables 5
	Intro Procedure{
		noOfCommands 1
		Fill{ 7dxText TextBrush }
	}
	Gears Procedure{
		noOfCommands 2
		RenderGxm{ Gears }
		Fill{ FadeRectangle FadeBrush }
	}
	Snowy Procedure{
		noOfCommands 2
		RenderGxm{ Snowy }
		Fill{ FadeRectangle FadeBrush }
	}
	Greets Procedure{
		noOfCommands 2
		RenderGxm{ Greets }
		Fill{ FadeRectangle FadeBrush }
	}
	End Procedure{
		noOfCommands 2
		RenderGxm{ End }
		Fill{ FadeRectangle FadeBrush }
	}


	noOfControllers 5
	CIntro Const{
		target null
		begin 0
		end 11000
		loops 0

		value 0
		noOfChildren 4
		Const{
			target $text
			begin 0
			end 5000
			loops 0

			value 0
			noOfChildren 0
		}
		Linear{
			target $text
			begin 5000
			end 6000
			loops 0

			beginValue 0
			endValue 1

			noOfChildren 0
		}
		Const{
			target $text
			begin 6000
			end 10000
			loops 0

			value 1
			noOfChildren 0
		}
		Linear{
			target $text
			begin 10000
			end 11000
			loops 0

			beginValue 1
			endValue 0

			noOfChildren 0
		}
		
	}
	CGears Const{
		target null
		begin 0
		end 21000
		loops 0

		value 0

		noOfChildren 4
		Trigger{
			begin 0
			targetGxm Gears
			targetAnimation MainAnim
			
			noOfChildren 0
		}
		
		Linear{
			target $fade
			begin 0
			end 2000
			loops 0

			beginValue 1
			endValue 0

			noOfChildren 0
		}
		Const{
			target $fade
			begin 2000
			end 19000
			loops 0

			value 0
			noOfChildren 0
		}
		Linear{
			target $fade
			begin 19000
			end 21000
			loops 0

			beginValue 0
			endValue 1

			noOfChildren 0
		}

	}
	CSnowy Const{
		target null
		begin 0
		end 21000
		loops 0

		value 0

		noOfChildren 4
		Trigger{
			begin 0
			targetGxm Snowy
			targetAnimation MainAnim
			
			noOfChildren 0
		}

		Linear{
			target $fade
			begin 0
			end 2000
			loops 0

			beginValue 1
			endValue 0

			noOfChildren 0
		}
		Const{
			target $fade
			begin 2000
			end 18000
			loops 0

			value 0
			noOfChildren 0
		}
		Linear{
			target $fade
			begin 18000
			end 20000
			loops 0

			beginValue 0
			endValue 1

			noOfChildren 0
		}

	}
	CGreets Const{
		target null
		begin 0
		end 42000
		loops 0

		value 0

		noOfChildren 4
		Trigger{
			begin 0
			targetGxm Greets
			targetAnimation MainAnim
			
			noOfChildren 0
		}

		Linear{
			target $fade
			begin 0
			end 2000
			loops 0

			beginValue 1
			endValue 0

			noOfChildren 0
		}
		Const{
			target $fade
			begin 2000
			end 38000
			loops 0

			value 0
			noOfChildren 0
		}
		Linear{
			target $fade
			begin 38000
			end 40000
			loops 0

			beginValue 0
			endValue 1

			noOfChildren 0
		}

	}
	CEnd Const{
		target null
		begin 0
		end 22000
		loops 1

		value 0

		noOfChildren 5
		Trigger{
			begin 0
			targetGxm End
			targetAnimation MainAnim
			
			noOfChildren 0
		}

		Linear{
			target $fade
			begin 0
			end 2000
			loops 0

			beginValue 1
			endValue 0

			noOfChildren 0
		}
		Const{
			target $fade
			begin 2000
			end 16000
			loops 0

			value 0
			noOfChildren 0
		}
		Linear{
			target $fade
			begin 16000
			end 20000
			loops 0

			beginValue 0
			endValue 1

			noOfChildren 0
		}
		Const{
			target $fade
			begin 20000
			end 25000
			loops 0

			value 1
			noOfChildren 0
		}

	}


	noOfAnimations 5
	MainAnim Animation{
		renderFunction Intro
		controller CIntro
		transitionTarget Gears
	}
	Gears Animation{
		renderFunction Gears
		controller CGears
		transitionTarget Snowy
	}
	Snowy Animation{
		renderFunction Snowy
		controller CSnowy
		transitionTarget Greets
	}
	Greets Animation{
		renderFunction Greets
		controller CGreets
		transitionTarget End
	}
	End Animation{
		renderFunction End
		controller CEnd
		transitionTarget null
	}
}
